package cz.proks.easyhelpdesk.gae.api.impl.ws;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cz.proks.easyhelpdesk.api.OAuth2TokenApi;
import cz.proks.easyhelpdesk.api.config.Configuration;
import cz.proks.easyhelpdesk.api.model.OAuth2Token;

@Controller(Configuration.WS.OAUTH2_TOKEN_API)
@RequestMapping(Configuration.WS.OAUTH2_TOKEN_BASE_URL)
public class OAuth2TokenApiImpl extends BaseApiImpl<OAuth2Token> implements OAuth2TokenApi {
    @Autowired
    @Qualifier(Configuration.Core.WS.OAUTH2_TOKEN_API)
    private OAuth2TokenApi coreApi;

    
    @Override
    protected OAuth2TokenApi getCoreApi() {
        return coreApi;
    }
    
    @Override
    public void deleteAllForProviderId(String providerId) {
        throw new UnsupportedOperationException(); 
    }     

}
